<template>
  <view
    class="emptyview"
    @click="tip"
  >
    <view class="tips">
      <image
        class="emptyimg"
        src="/static/empty.png"
        mode="withFix"
      />
      <view class="tip">
        {{ tipText }}
      </view>
    </view>
  </view>
</template>

<script>
export default {
  components: {},
  props: {
    tipText:{
      type:String,
      default:'请登陆绑定账户后查看相关信息'
    },
    showTapText:{
      type:Boolean,
      default:true
    }
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    tip() {
      if(this.showTapText){
        uni.showToast({
          title: '请切换到个人中心页面进行登陆绑定',
          duration: 2000,
          icon:'none'
        })
      }
    },
  },
}
</script>
<style lang="scss" scoped>
.emptyview {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  .tips {
    margin-left: auto;
    margin-right: auto;
    margin-top: 40%;
    text-align: center;
    .emptyimg {
      width: 266rpx;
      height: 243rpx;
    }
    .tip {
    }
  }
}
</style>